package com.bupt.dao;

import com.bupt.bean.DeviceChannelAttribute;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DeviceChannelAttributeRepository extends JpaRepository<DeviceChannelAttribute,String>, JpaSpecificationExecutor<DeviceChannelAttribute> {

    DeviceChannelAttribute findByChannelAttributeId(Integer channelAttributeId);

    void deleteByDeviceChannelId(Integer deviceChannelId);

    public List<DeviceChannelAttribute> findAllByDeviceTypeAttributeId(Integer deviceTypeAttributeId);

    void deleteByDeviceTypeAttributeId(Integer deviceTypeAttributeId);

}
